import flash.events.Event;
import flash.net.URLLoader;
import flash.net.URLRequest;

class mnet{
private static var newstring:String

static public function HttpGet(Url:String,timeoutConnection:int, timeoutSocket:int):String{
	var reqURL:URLRequest = new URLRequest(Url);
	var loader:URLLoader = new URLLoader(reqURL);
	loader.addEventListener(Event.COMPLETE, handleComplete);
	loader.dataFormat = URLLoaderDataFormat.TEXT;


function handleComplete( event:Event):void
{
var loader:URLLoader = URLLoader(event.target);
newstring = loader.data;

}
return newstring
}
}
